﻿using System;
using System.Collections.Generic;
using System.Text;

namespace LEE.AspNetCore.Extensions.Exceptions
{
    /// <summary>
    /// 自定义异常
    /// </summary>
    public class CustomException : Exception
    {
        public int HttpStatusCode { get; set; }


        public CustomException(string message, int httpStatusCode) : base(message)
        {
            HttpStatusCode = httpStatusCode;
        }
    }
}
